package com.alinesno.cloud.busines.shop.manage.entity;
import java.util.Date;
import com.alinesno.sdk.generator.table.annotation.ColumnComment;
import com.alinesno.sdk.generator.table.annotation.ColumnType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alinesno.cloud.common.facade.mapper.entity.BaseEntity;

/**
 * 功能名： 待秒杀商品
 * 数据表：  item_kill
 * 表备注： 待秒杀商品表
 * @author wangyongkang ${authorEmail}
 * @date 2022-03-17 23:48:40
 */
@TableName("item_kill")
public class ItemKillEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
    * 商品id
    */
    @ColumnComment("商品id")
    @Excel(name="商品id")
    @ColumnType(length = 11)
    @TableField("item_id")
    private String itemId;
    /**
    * 可被秒杀的总数
    */
    @ColumnComment("可被秒杀的总数")
    @Excel(name="可被秒杀的总数")
    @ColumnType(length = 11)
    @TableField("total")
    private Integer total;
    /**
    * 秒杀开始时间
    */
    @ColumnComment("秒杀开始时间")
    @Excel(name="秒杀开始时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("start_time")
    private Date startTime;
    /**
    * 秒杀结束时间
    */
    @ColumnComment("秒杀结束时间")
    @Excel(name="秒杀结束时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("end_time")
    private Date endTime;
    /**
    * 是否有效（1=是；0=否）
    */
    @ColumnComment("是否有效（1=是；0=否）")
    @Excel(name="是否有效（1=是；0=否）")
    @ColumnType(length = 11)
    @TableField("is_active")
    private Byte isActive;
    /**
    * 创建的时间
    */
    @ColumnComment("创建的时间")
    @Excel(name="创建的时间",exportFormat = "yyyy-MM-dd")
    @ColumnType(length = 0)
    @TableField("create_time")
    private Date createTime;
    //getter and setter


    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Date getStartTime(){
        return this.startTime;
    }
    public ItemKillEntity setStartTime(Date arg){
        this.startTime = arg;
        return this;
    }
    public Date getEndTime(){
        return this.endTime;
    }
    public ItemKillEntity setEndTime(Date arg){
        this.endTime = arg;
        return this;
    }

    public Byte getIsActive() {
        return isActive;
    }

    public void setIsActive(Byte isActive) {
        this.isActive = isActive;
    }

    public Date getCreateTime(){
        return this.createTime;
    }
    public ItemKillEntity setCreateTime(Date arg){
        this.createTime = arg;
        return this;
    }
}
